from zy.base import Base
from selenium.webdriver.common.by import By
import time


class Page(Base):
    srk_loc=(By.ID,'chat-textarea')
    def srk(self):
        self.send_keys(self.srk_loc,'我喜欢软件测试')
    anniu_loc=(By.ID,'chat-submit-button')
    def anniu(self):
        self.click(self.anniu_loc)


    def test_so(self):
        self.get('https://www.baidu.com/')
        self.srk()
        time.sleep(3)
        self.anniu()
        time.sleep(3)